/**
 * Bank Of Communication HK Brance internal javascript library.
 
 * @author Bocom IT.
 * @date 2011-09-26
 * @version 1.0.0
 */

/* Init parameters start.*/
var defaultDateFormat="yy-mm-dd";
var defaultDatePickerImg="assets/images/site/1317027192_calendar_2.ico";
/* Init parameters end.*/

	
$(function() {
	initUI();
});


/*
 * Initialize the page UI componant such as button ,date picker.
 * Using convension over configuration style make developer much 
 * easier do develop.
 * 
 * @author zhengzheming
 */
function initUI(){
	//init button.
	$("button[id^='button']").button();
	
	//init date picker style.
	$("input[id^='datepicker']").datepicker({
		showOn : "button",
		buttonImage : defaultDatePickerImg,
		buttonImageOnly : true,
		dateFormat:defaultDateFormat
	});
}
